﻿    
    
    
    @if (ViewBag.ErrorHandling != null || ViewBag.CustomError != null)
    {
        <div class="ui-widget">
			<div class="ui-state-error ui-corner-all" style="padding: 0 .7em;"> 
				<p><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span> 
				<strong>Error:</strong> <br /> Er is een error opgetreden. <br /> <br /> 
                
                @if (@ViewBag.Errorhandling != null)
                {
                    <strong>Error message:</strong> @ViewBag.ErrorHandling.Message <br />
                    <strong>Error source:</strong> @ViewBag.ErrorHandling.Source <br />
                    <strong>Error innerexeption:</strong> @ViewBag.ErrorHandling.InnerException <br /><br />
                }
                @if (@ViewBag.CustomError != null)
                {
                    <strong>Custom error:</strong> @ViewBag.CustomError
                }
                </p>
			</div>
		</div>
    }
    
    <br />
